import {defineStore} from 'pinia'
//定义store
export const menuStore = defineStore('menuStore',{
    state:()=>({
        isCollapse:false
    }),
    getters: {
        getCollapse(state){
        return state.isCollapse
        }
    },
    actions: {
         setCollapse() {
          this.isCollapse = !this.isCollapse
    },
  },
})